#!/usr/bin/env bun

import read from "@3-/read"
import write from "@3-/write"
import { join } from "node:path"
import decodeGen from "../src/decodeGen.js"

const ROOT = import.meta.dirname

write(join(ROOT, "demo.decode.js"), decodeGen(read(join(ROOT, "demo.proto"))))
